# Maintainer: Morten Linderud <foxboron@archlinux.org>

pkgname=bmusb
_commit=327dca2d848e4c4656be1bfb54a2edf2e6587a71
pkgver=0.7.6
pkgrel=2
pkgdesc="a free driver for BlackMagic's Intensity Shuttle andUltraStudio SDI USB3 cards"
arch=('loong64' 'x86_64')
url="https://git.sesse.net/?p=bmusb;a=summary"
license=('GPL2')
depends=('libusb')
source=("${pkgname}-${pkgver}.tar.gz::https://git.sesse.net/?p=bmusb;a=snapshot;h=${_commit};sf=tgz")
sha256sums=('1e8e5d8a5c7db103dba74325e72a18a2c60682418a16bac2b3035c6bc034bbc1')

build() {
  cd "${pkgname}"-"${_commit:0:7}"
  make
}

package() {
  cd "${pkgname}"-"${_commit:0:7}"
  make UDEVDIR="/usr/lib/udev" DESTDIR="${pkgdir}" PREFIX="/usr" install
}

# vim:set ts=2 sw=2 et:
